/**
 * 
 */
package cn.edu.cqu.bysj.wm.gui.component;

import javax.swing.JPanel;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.LayoutStyle.ComponentPlacement;
import java.awt.BorderLayout;
import javax.swing.JLabel;
import javax.swing.border.LineBorder;
import java.awt.SystemColor;
import java.awt.Color;

/**
 * @author Meng
 * 
 */
public class LPSolutionsTabContent extends JPanel {
	private JPanel matrix;
	private JPanel table;

	/**
	 * create lp solutions tab
	 */
	public LPSolutionsTabContent() {

		matrix = new JPanel();
		matrix.setBorder(new LineBorder(SystemColor.controlShadow));
		matrix.setBackground(SystemColor.menu);

		table = new JPanel();

		JLabel lblNewLabel = new JLabel("不同solution的Jaccard index & fsame值");
		lblNewLabel.setForeground(new Color(0, 0, 0));
		GroupLayout groupLayout = new GroupLayout(this);
		groupLayout
				.setHorizontalGroup(groupLayout
						.createParallelGroup(Alignment.LEADING)
						.addGroup(
								groupLayout
										.createSequentialGroup()
										.addGroup(
												groupLayout
														.createParallelGroup(
																Alignment.LEADING)
														.addGroup(
																groupLayout
																		.createSequentialGroup()
																		.addGap(74)
																		.addComponent(
																				lblNewLabel,
																				GroupLayout.DEFAULT_SIZE,
																				412,
																				Short.MAX_VALUE))
														.addComponent(
																matrix,
																GroupLayout.DEFAULT_SIZE,
																485,
																Short.MAX_VALUE))
										.addPreferredGap(
												ComponentPlacement.RELATED)
										.addComponent(table,
												GroupLayout.DEFAULT_SIZE, 424,
												Short.MAX_VALUE)));
		groupLayout
				.setVerticalGroup(groupLayout
						.createParallelGroup(Alignment.LEADING)
						.addGroup(
								groupLayout
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												groupLayout
														.createParallelGroup(
																Alignment.TRAILING)
														.addComponent(
																table,
																Alignment.LEADING,
																GroupLayout.DEFAULT_SIZE,
																GroupLayout.DEFAULT_SIZE,
																Short.MAX_VALUE)
														.addGroup(
																Alignment.LEADING,
																groupLayout
																		.createSequentialGroup()
																		.addComponent(
																				lblNewLabel,
																				GroupLayout.PREFERRED_SIZE,
																				28,
																				GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																				ComponentPlacement.RELATED)
																		.addComponent(
																				matrix,
																				GroupLayout.DEFAULT_SIZE,
																				359,
																				Short.MAX_VALUE)))
										.addGap(58)));
		matrix.setLayout(new BorderLayout(0, 0));
		setLayout(groupLayout);
	}

	public JPanel getMatrix() {
		return matrix;
	}

	public void setMatrix(JPanel matrix) {
		this.matrix = matrix;
	}

	public JPanel getTable() {
		return table;
	}

	public void setTable(JPanel table) {
		this.table = table;
	}
}
